import java.util.Scanner;


public class StringRevApp {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		System.out.print("Introduce cadena: ");
		String s = sc.nextLine();
		
		int i = 0;
		System.out.print("Resultado: ");
		for(i = s.length()-1; i >= 0; i--)
			System.out.print(s.charAt(i));

	}

}
